<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'stock-form',
    'enableAjaxValidation'=>false,
)); ?>

  <p class="note">Fields with <span class="required">*</span> are required.</p>

  <?php echo $form->errorSummary($model); ?>

  <div class="row">
    <?php echo $form->labelEx($model,'timestamp'); ?>
    <?php echo $form->textField($model,'timestamp'); ?>
    <?php echo $form->error($model,'timestamp'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'companyID'); ?>
    <?php echo $form->textField($model,'companyID'); ?>
    <?php echo $form->error($model,'companyID'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'open'); ?>
    <?php echo $form->textField($model,'open'); ?>
    <?php echo $form->error($model,'open'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'high'); ?>
    <?php echo $form->textField($model,'high'); ?>
    <?php echo $form->error($model,'high'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'low'); ?>
    <?php echo $form->textField($model,'low'); ?>
    <?php echo $form->error($model,'low'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'close'); ?>
    <?php echo $form->textField($model,'close'); ?>
    <?php echo $form->error($model,'close'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'ref'); ?>
    <?php echo $form->textField($model,'ref'); ?>
    <?php echo $form->error($model,'ref'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'avg'); ?>
    <?php echo $form->textField($model,'avg'); ?>
    <?php echo $form->error($model,'avg'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'ceiling'); ?>
    <?php echo $form->textField($model,'ceiling'); ?>
    <?php echo $form->error($model,'ceiling'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'floor'); ?>
    <?php echo $form->textField($model,'floor'); ?>
    <?php echo $form->error($model,'floor'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'volumeKhopLenh'); ?>
    <?php echo $form->textField($model,'volumeKhopLenh'); ?>
    <?php echo $form->error($model,'volumeKhopLenh'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'volumeAgreement'); ?>
    <?php echo $form->textField($model,'volumeAgreement'); ?>
    <?php echo $form->error($model,'volumeAgreement'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'valueKhopLenh'); ?>
    <?php echo $form->textField($model,'valueKhopLenh'); ?>
    <?php echo $form->error($model,'valueKhopLenh'); ?>
  </div>

  <div class="row">
    <?php echo $form->labelEx($model,'valueAgreement'); ?>
    <?php echo $form->textField($model,'valueAgreement'); ?>
    <?php echo $form->error($model,'valueAgreement'); ?>
  </div>

  <div class="row buttons">
    <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
  </div>

<?php $this->endWidget(); ?>

</div><!-- form -->
